final class SheetShow extends Canvas implements CommandListener, Backable {
private static final short TBL_WIDTH = 10;
private static final short TBL_HEIGHT = 9;
private static final short M_CELL_DATA = 0;
private static final short M_CELL_FORMAT = 1;
private static final short M_RECALC = 2;
private static final short M_FILE = 3;
private static final short M_CANCEL = 4;
private static final short M_HELP = 5;
private static final short M_E_COLOUR = 6;
private static final short M_E_ALIGN = 7;
private static final short MCD_EDIT = 0;
private static final short MCD_CLEAR = 1;
private static final short MCD_COPY = 2;
private static final short MCD_PASTE = 3;
private static final short MCD_BACK = 4;
private static final short MCF_SIZE = 0;
private static final short MCF_COLOUR = 1;
private static final short MCF_ALIGN = 2;
private static final short MCF_BACK = 3;
private static final short MFM_NEW = 0;
private static final short MFM_LOAD = 1;
private static final short MFM_SAVE = 2;
private static final short MFM_EXIT = 3;
private static final short MFM_BACK = 4;
private static final Command[] COMMANDS = new Command[]{new Command("Cell Data", 1, 0), new Command("Cell Format", 1, 1), new Command("Recalculate", 1, 2), new Command("File", 1, 3), new Command("Cancel", 3, 4), new Command("Help", 5, 5)};
private static final List[] MENUS = new List[]{new List("Cell Data", 3, new String[]{"Edit Cell", "Clear Cell", "Copy", "Paste", "Back to sheet"}, (Image[])null), new List("Cell Format", 3, new String[]{"Cell Size", "Cell Colour", "Cell Alignment", "Back to sheet"}, (Image[])null), null, new List("File", 3, new String[]{"New sheet", "Open", "Save", "Exit", "Back to sheet"}, (Image[])null), null, null};
private static final Command okCommand = new Command("Ok", 4, 1);
private static final Command cancelCommand = new Command("Cancel", 3, 1);
CellResize var4 = new CellResize(this.data, this);
display.setCurrent(var4);
return;
case 1:
List var6 = new List("Cell Colour", 3, Cell.colors, (Image[])null);
this.setSubmenu(var6, (short)6);
display.setCurrent(var6);
return;
case 2:
List var3 = new List("Cell Alignment", 3, Cell.aligns, (Image[])null);
this.setSubmenu(var3, (short)7);
display.setCurrent(var3);
return;
case 3:
this.show();
return;
default:
return;
}
case 2:
this.showWait("Calculating...", new 10(this));
break;
case 3:
switch (var2) {
case 0:
this.checkModified(new 11(this));
return;
case 1:
this.checkModified(new 12(this));
return;
case 2:
this.save((Runnable)null);
return;
case 3:
this.checkModified(new 13(this));
return;
case 4:
this.show();
return;
default:
return;
}
case 4:
this.show();
break;
case 5:
Alert var5 = new Alert("Sheet help", "This is a small spreadsheet application capable of simple integer and string operations. You can find some hints in the Formula help (accessible from the formula editor).\n- To enter a numeric value, simply type the number ('*' serves as a backspace).\n- To enter a formula, press '*' key, then the formula editor will be opened with '=' pre-entered.\n- To simply edit a cell formula, press '#'.\n- Left softkey shows the full cell data.\n---\nMC, 2001", (Image)null, (AlertType)null);